//
//  Effect.m
//  MyFirstGame
//
//  Created by Thi Huynh on 3/1/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "Effect.h"

@implementation Effect


-(void)setUpParticleWith:(float)scale time:(float)time numbers:(int)number
{
    self.totalParticles=number;
    [self setScale:scale];
    self.lifeVar=time;
    
}

-(void)runParticleWith:(CCLayer *)layer posX:(float)posX posY:(float)posY
{
    [self setPosition:CGPointMake(posX, posY)];
    [layer addChild:self];
}


-(void)runParticleWithPoint:(CCLayer*)layer pos:(CGPoint)pos
{
    [self setPosition:pos];
    [layer addChild:self];
    
}
@end
